let compute = (id, items) => {
  items.forEach((item, idx) => {
    items[idx] = (item * 100).toFixed(2)
  })
  postMessage(
    {
      id: id,
      data: items
    }
  )
}

onmessage = function (e) {
  compute(e.data.id, e.data.data)
}